sysroot: Add a clearer error if /boot/loader isn't found
authorColin Walters <walters@verbum.org>
Mon, 26 Aug 2019 17:43:26 +0000 (17:43 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 26 Aug 2019 20:30:31 +0000 (20:30 +0000)
commit93999d337e521a4be3aa4ae7820835802986d394
treef22b3f26eebb6abd8549fd0b1dbeba07c151dc5b
parent71e1e9d18eb3d3c3fa526725b6c9f3e6b92e40c3
sysroot: Add a clearer error if /boot/loader isn't found

I've seen people confused by this error in the case where
`/boot` isn't mounted or the BLS fragments were deleted, etc.
If you understand ostree deeply it's clear but, let's do
better here and a direct error message for the case where
we can't find `/boot/loader` which is the majority of these.

The other case could happen if e.g. just the BLS fragment
for the booted deployment was deleted; let's reword that
one a bit too.

Closes: #1905
Approved by: rfairley
src/libostree/ostree-sysroot.c